<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <!-- page title -->
        <title><?php echo $title_for_layout; ?></title>

        <!-- page css -->


        <?php echo $html->css('global'); ?>
        <?php echo $html->css('site'); ?>
        <?php echo $html->css('rustic'); ?>


        <!-- Ajax framework named "Prototype" -->
        <?php echo $javascript->link(array('prototype')); ?>
        <!--  Flash helper script -->
        <?php echo $javascript->link(array('swfobject')); ?>

    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <h1>
                    <?php
                    $textLinkMetaData = array(
                        "controller" => "users",
                        "action" => "login"
                    );
                    $placeOrderTextLink = $html->link("Place order", $textLinkMetaData);
                    $imageLinkMetaData = array(
                        "alt" => $placeOrderTextLink,
                        'url' => $textLinkMetaData
                    );
                    $placeOrderImageLink = $html->image("logo.gif", $imageLinkMetaData);
                    e($placeOrderImageLink);
                    ?>

                </h1>
                <ul id="nav">

                    <li>

                        <?php
                        $textLinkMetaData = array(
                            "controller" => "users",
                            "action" => "login"
                        );
                        $placeOrderTextLink = $html->link("HOME", $textLinkMetaData);
                        e($placeOrderTextLink);
                        ?>


                        &nbsp;|&nbsp;</li>


                    

                    <li><?php echo $html->link('RESTAURANT', array('controller' => 'pages', 'action' => 'display', 'under_construction')); ?>&nbsp;|&nbsp; </li>
                    <li><?php echo $html->link('MENUS', array('controller' => 'pages', 'action' => 'display', 'under_construction')); ?>&nbsp;|&nbsp; </li>
                    <li><?php echo $html->link('RESERVATIONS', array('controller' => 'pages', 'action' => 'display', 'under_construction')); ?>&nbsp;|&nbsp; </li>
                    <li><?php echo $html->link('EVENTS', array('controller' => 'pages', 'action' => 'display', 'under_construction')); ?>&nbsp;|&nbsp; </li>
                    <li><?php echo $html->link('CONTACT US', array('controller' => 'pages', 'action' => 'display', 'under_construction')); ?>&nbsp;|&nbsp; </li>
                    <li>

                        <?php
                        echo $html->link('LOGOUT',
                                '/users/logout');
                        ?>
                        &nbsp;|&nbsp;
                    </li>
                </ul>
                <div id="welcome">
                    <h2>
                        <?php
                        $textLinkMetaData = array(
                            "controller" => "users",
                            "action" => "login"
                        );
                        $placeOrderTextLink = $html->link("Place order", $textLinkMetaData);
                        $imageLinkMetaData = array(
                            "alt" => $placeOrderTextLink,
                            'url' => $textLinkMetaData
                        );
                        $placeOrderImageLink = $html->image("title_welcome.gif", $imageLinkMetaData);
                        //e($placeOrderImageLink);


                        ?>
                        <?php echo $flash->renderSwf('app/webroot/img/header.swf', 450, 150); ?>

                    </h2>

                    <p>
                        <?php echo $session->flash(); ?>
                        
                            <?php
                            echo $session->flash('auth');
                            //echo $this->element('loginFailed');
                            ?>
                        



                    </p>
                </div><!-- end welcome -->
            </div><!-- end header -->
            <div id="body">

            </div><div id="leftnav"><?php echo $this->element('menu'); ?></div>
            <div id="main_body_container" align="center">
                <?php echo $content_for_layout ?>
                        </div>
                        <div class="clear" id="spacer"></div>
            <div id="hotstuff">
                <h2><img src="../app/webroot/img/title_hot.gif" alt="Today's Hot" /></h2>
                <div style="background-image: url(../app/webroot/img/picture_4.jpg);" id="hot-one" class="imagebox">
                    <h3><?php echo $html->link('Hot Item #1: Chicken Shawarma', array('controller' => 'pages', 'action' => 'display', 'page4')); ?></h3>
                    <p>Arab sandwich-like wrap of shaved lamb, goat, chicken, turkey, beef, or a mixture thereof.</p>
                    <p class="readmore"><?php echo $html->link('...more', array('controller' => 'pages', 'action' => 'display', 'page4')); ?></p>
                </div>
                <div style="background-image: url(../app/webroot/img/picture_5.jpg);" id="hot-two" class="imagebox">
                    <h3><?php echo $html->link('Hot Item #2 Hummus', array('controller' => 'pages', 'action' => 'display', 'page13')); ?></h3>
                    <p>It is a Levantine Arab dip or spread made from cooked, mashed chickpeas, blended with tahini, olive oil, lemon juice, salt and garlic.</p>
                    <p class="readmore"><?php echo $html->link('...more', array('controller' => 'pages', 'action' => 'display', 'page13')); ?></p>
                </div>
                <div style="background-image: url(../app/webroot/img/picture_6.jpg);" id="hot-three" class="imagebox">
                    <h3><?php echo $html->link('Hot Item #2 Fish Curry', array('controller' => 'pages', 'action' => 'display', 'page15')); ?></h3>
                    <p>A spicy dish more satiating than lean beef or chicken that only contains a quarter of your daily fat allowance. </p>
                    <p class="readmore"><?php echo $html->link('...more', array('controller' => 'pages', 'action' => 'display', 'page15')); ?></p>
                </div>
                <div class="clear"></div>
            </div>
                    </div>

                    <div id="footer">
                        Powered by <a href="http://www.lunchnet.net">I Got Lunch</a>
                    </div>

        <?php
//Following statement prints the sql querries run by cakephpo.
//We dont need this statement when in production environment.
//However, it is helpful during development.
//
//echo $this->element('sql_dump');
        ?>
    </body>
</html>
